package cc.rengu.redp.bizimpl.igas.service;

import cc.rengu.redp.bizimpl.upmp.vo.WaitingToDoVO;
import cc.rengu.redp.common.domain.QueryRequest;
import cc.rengu.redp.common.exception.RedpException;
import cc.rengu.redp.bizimpl.igas.domain.PBinInfo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

/**
 * @author System
 */
public interface IPBinInfoService extends IService<PBinInfo> {
    IPage<PBinInfo> findByPage(QueryRequest request, PBinInfo pBinInfo) throws RedpException;

    PBinInfo findByUK(String issuerCode, String binNo);

    void add(PBinInfo pBinInfo)throws RedpException;

    void update(PBinInfo pBinInfo)throws RedpException;

    void check(WaitingToDoVO taskInfo)throws RedpException;

    Map<String, Object> getTblTxnInfSelect2List(String q, QueryRequest request);

    @Transactional
    void addBinInfo(PBinInfo binInfo);

    @Transactional
    void updateBinInfo(PBinInfo binInfo);
}
